home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11287 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

  1. Path: news-relay.eworld.com!zdc!szdc!news
  2. From: cmahoney@super.zippo.com (Colin Mahoney)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: HELP NEEDED ON C++ TVISION
  5. Date: Wed, 13 Mar 1996 12:08:08 GMT
  6. Organization: Zippo
  7. Message-ID: <3146a277.2415506@snews.zippo.com>
  8. References: <891248863wnr@novagrp.demon.co.uk> <4hslj3$rsm@sam.inforamp.net>
  9. NNTP-Posting-Host: readysoft_242.readysoft.es
  10. X-Newsreader: Forte Agent .99d/32.182
  11.  
  12. On Sat, 09 Mar 96 19:18:46 GMT, rmorin@inforamp.net (Randy Charles
  13. Morin) wrote:
  14.  
  15. >In article <891248863wnr@novagrp.demon.co.uk>,
  16. >   Faisal Sheikh <faisal@novagrp.demon.co.uk> wrote:
  17. >>
  18. >>Faisal Sheikh      EMail faisal@novagrp.demon.co.uk
  19. >> 
  20. >>I have written a program for a simple editor using TVision. I can write 
  21. >>on active window using keyboard, but I don't know how to display a 
  22. >>string or a character on active window. I have drived the main window 
  23. >>from class TAplication and child window from TEditWindow. Can anybody 
  24. >>tell me what functions to use. I will be greatful if you can email me. 
  25. >
  26. >I'm assuming by active window, you mean the TEditWindow.  
  27. >
  28. >char buffer[]="Hello";
  29. >TEditWindow p(...);
  30. >..
  31. >p.SetText(buffer);
  32. >
  33. >But, I haven't used TVision in almost two years and I might be confusing the 
  34. >TEditWindow with the one in OWL.
  35. >
  36.  
  37. "windows" are different things in turbovision and MS Windows..
  38.  
  39. A TV window corresponds roughly to a MSWindows frame; TV has a "TView"
  40. class which corresponds to a bog-standard window. You need to insert
  41. the text into the TEditor object, derived from TView, a pointer to
  42. which is held in the TEditWindow object. Something like:
  43.  
  44. p.editor->insertText( buffer, length, bSelectText );
  45.  
  46. TV include a complete example of using the editors; check out
  47. TVEdit.ide or TVEdit.prj, depending on the version you have.
  48.  
  49. The best place to fine help on TV is in the newsgroup
  50. comp.os.msdos.programmer.turbovision. When posting, specify if you are
  51. asking about the C++ or Turbo Pascal versions.
  52.  
  53. >Agrivar
  54.  
  55. ---------------------------------------
  56. Colin Mahoney ( cmahoney@readysoft.es )
  57. Sabadell, Spain
  58. ---------------------------------------
  59.